
package com.flowmodule.bean;

import com.usersmodule.bean.TbUsers;
import com.usersmodule.dao.TbUsersDAO;

public class TbFlowType implements java.io.Serializable {

    private int flowTypeId;

    private String flowTypeName;

    private int userId;
    private TbUsers tbUsers;
    
    private String createTime;

    public int getFlowTypeId(){
        return flowTypeId;
    }

    public void setFlowTypeId(int flowTypeId){
        this.flowTypeId = flowTypeId;
    }

    public String getFlowTypeName(){
        return flowTypeName;
    }

    public void setFlowTypeName(String flowTypeName){
        this.flowTypeName = flowTypeName;
    }

    public int getUserId(){
        return userId;
    }

    public void setUserId(int userId){
        this.userId = userId;
        this.tbUsers=new TbUsersDAO().getTbUsersByUserId(userId);
    }

    public TbUsers getTbUsers() {
		return tbUsers;
	}

	public void setTbUsers(TbUsers tbUsers) {
		this.tbUsers = tbUsers;
	}

	public String getCreateTime(){
        return createTime;
    }

    public void setCreateTime(String createTime){
        this.createTime = createTime;
    }


    public TbFlowType(){
    }
    public TbFlowType(String flowTypeName,int userId){
        this.flowTypeName = flowTypeName;
        this.userId = userId;
    }
    public TbFlowType(int flowTypeId,String flowTypeName,int userId){
        this.flowTypeId = flowTypeId;
        this.flowTypeName = flowTypeName;
        this.userId = userId;
    }
}

